#ifndef __JARVIS_H__
#define __JARVIS_H__
/*! \file jarvis.h
 * \author A. POLI
 * \date 2011
 */
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <unistd.h>
#include <GL/glut.h>
#include "two.h"

#define nbPointsConv 100

/*! Structure envconv. */
typedef struct
{
  vertex* tableau[nbPointsConv];
} envConv;

//void initEnvConv(struct envConv);

vertex recuperation_min_vertex(vertex* tab);

int recuperation_min_position(vertex* tab);

vertex orientation(vertex a,vertex b,vertex c);

int egalite_vertex(vertex a, vertex b);


envConv jarvis(vertex *tab);



#endif
